package com.avo.ramcache.orm.impl.m2s;

import com.avo.ramcache.config.CacheConfig;
import com.avo.ramcache.constant.SymbolConstant;

public class M2SHibernateHelper {

    public static String tableName(int server, String tableName) {
        // 可根据 server 动态拼接 tableName
        return CacheConfig.getInstance().dbName + SymbolConstant.SPOT + tableName;
    }

    public static String getDBName(int server) {
        // 可根据 server 动态拼接 dbname
        return CacheConfig.getInstance().dbName;
    }
}
